import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/login',
      component: () => import('@/views/login/index.vue')
    },
    {
      path: '/',
      component: () => import('@/views/layout/index.vue'),
      redirect: '/examine/examManage',
      children: [
        {
          path: 'examine/examManage',
          component: () => import('@/views/examine/examManage/index.vue')
        },
        {
          path: 'examine/interviewManage',
          component: () => import('@/views/examine/interviewManage/index.vue')
        },
        {
          path: 'examine/scoreManage',
          component: () => import('@/views/examine/scoreManage/index.vue')
        },
        {
          path: 'exempt/applyFor',
          component: () => import('@/views/exempt/index.vue')
        },
        {
          path: 'examArrangement/exam',
          component: () => import('@/views/examArrangement/exam/index.vue')
        },
        {
          path: 'examArrangement/exempt',
          component: () => import('@/views/examArrangement/exempt/index.vue')
        },
        {
          path: 'examArrangement/interview',
          component: () => import('@/views/examArrangement/interview/index.vue')
        },
        {
          path: 'studentManagement/pass',
          component: () => import('@/views/studentManagement/pass/index.vue')
        },
        {
          path: 'management/notice',
          component: () => import('@/views/management/notice/index.vue')
        },
        {
          path: 'management/admin',
          component: () => import('@/views/management/admin/index.vue')
        },
        {
          path: 'management/link',
          component: () => import('@/views/management/link/index.vue')
        },
        {
          path: 'management/log',
          component: () => import('@/views/management/log/index.vue')
        },
        {
          path: 'management/count',
          component: () => import('@/views/management/count/index.vue')
        }
      ]
    }
  ]
})

export default router
